package StrategyMode.version3;

import java.util.ArrayList;

/**
 * Created by ycq on 2018/10/17.
 * 现金收费工厂类
 */
public class CashFactory {
    public static CashSuper createCashAccept(String type){
        CashSuper cs=null;
        switch (type){
            case "正常":
                cs=new CashNormal();
                break;
            case "满减":
                cs=new CashReturn();
                break;
            case "打折":
                cs=new CashRebate();
                break;

        }
        return cs;

    }



}
